/**
 * config.js
 */

let host = "https://www.duohw.cn/mobile.php"
// let fu = wx.getStorageSync('userId')
let config = {
  // WX_ENV: "game", //当前环境 game, test
  CODE: {
    REQUESTSUCCESS: 200,
    REQUESTERROR: 404
  },
  SHARE: {
    title: '推荐潮品抽奖给您，试试手气',
    path: '/pages/JX/index/index?share=1&fu=' + wx.getStorageSync('userId') +'&treasure_id=-1',
    imageUrl: '../../image/share_1.png',

    titleDet: '',
    pathDet: '/pages/JX/index/index?share=2&fu=' + wx.getStorageSync('userId'), //抽奖分享单独处理
    imageDet: '',
  },

  host,
  loginUrl: `${host}/CPProgram/login.html`,
  jxListUrl: `${host}/CPProgram/lists`, //正式
  // jxListUrl: `${host}/CPProgram1/lists`, //测试
  syUrl: `${host}/CPProgram/toHome`,
  detailUrl: `${host}/CPTreasure/detail`,
  joinDBLists: `${host}/CPTreasure/joinList`,
  rankUrl: `${host}/CPTreasure/inviteList`,
  joinCJUrl: `${host}/CPTreasure/join`,
  allListUrl: `${host}/CPTreasure/lists`,
  updateUserInfoUrl: `${host}/CPProgram/update`,
  myinfoUrl: `${host}/CPTreasure/myInfo`,
  cjRecord: `${host}/CPTreasure/myJoin`,
  zjRecord: `${host}/CPTreasure/myWin`,
  submitAddress: `${host}/CPTreasure/submitAddress`,
  helpList: `${host}/CPProgram/helpList`,
  recordShareUrl: `${host}/CPProgram/recordShare`,
  tongJiUrl: `${host}/CPProgram/tj.html`,
  //不使用=======
  test: {
    HOST: {
      HTTP_DOMAIN: 'http://tm.xymens.com/',
      BASE_URL: 'http://tm.xymens.com/index.php',
      API_URL: 'http://tapi.xymens.com/index.php'
    }
  }
};

module.exports = config;